<?php
class AutoMobile{
    private $vehicleMake;
    private $vehicleModel;
    
    public function __construct($make,$model){
        
        $this->vehicleMake=$make;
        $this->vehicleModel=$model;
        
    }
    
    public function getMakeAndModel(){
        return $this->vehicleMake.' '.$this->vehicleModel;
    }
    
}

class AutoMobileFactory{
    public static  function create($make,$model){
        return new AutoMobile($make, $model);
    }
}

$veyron=AutoMobileFactory::create('Bugatti', 'veyron');
print_r($veyron->getMakeAndModel());





?>